[aot] Fixed the strip invocation to correctly handle paths with spaces.