Issues when script file path contains spaces