MRG: Windows test fixes

FIxes from Ariel and I for test failures on gh-306.

Refactor script tests to allow paths with spaces.
Reduce precision required for one test
Use temporary directory context manager to allow windows to delete temporary files after test