fixed a bug with windows path translation
added `toUnix` function
specs run & pass on windows