Split module::execute_command into Windows and Linux variants