fix subcommand timeout handeling and specs on windows platform