Fixes
#1027, the previous fix had a problem under windows.
...
Fixes
#1027, the previous fix had a problem under windows.
Ensure that scripts are newline-terminated, apparently py3 complains when there's a missing newline and the last line ends in a comment. This is probably a python bug, but we should protect against it nonetheless.