Add windows support and work around issue with SCP_TO on windows systems

Could you update this PR with the update to fqdn_rotate test also?