sync_folders: fix rsync on windows

This patch adds the changes introduced in
https://github.com/mitchellh/vagrant-aws/pull/77 for vagrant-aws, to fix
rsync on Windows. Some minor adjustments were made to adapt the change
to vagrant-vsphere, but the absolute majority of the work was not done
by myself. I just copy-pasted the necessary changes into the middleware.