adapt remote commands for cygwin