Fix for windows environment.

Because of backslashes in windows urls to files were not created. Simple string manipulation fixed the issue.