__opts__ not available in cmd.retcode