Fix #168

* clean up generated script file names for remote copy
* remove spaces and / from generated file name