detect windows and don't escape resize subcommands