fixed file opening on windows

hopefully i did not kill it on mac...