You can't use process.platform to check for the platform name of the remote system!