Some magic for rsync on windows, this is probably not very flexible