Fix -w option to work on windows

#60