validate_cmd(): Use Puppet::Util::Execution.execute when available