Fix remotePaths when provisioning Linux from Windows

Fix for #394 .

I have copied from #963 .