fix scripts to work on Windows when spaces are in the file name