Fixed some issues on windows, still a problem with xcopy for a single file