check_puppet_agent: removes ! and adds sudo