fixed bug in Windows when using paths to files