Add support for windows and test

globSync doesn't work on windows