Make FileSystemRepository compat to win32

Fix "Cannot create a file when that file already exists" error.