Ensure 'agent' subcommand is executed

Ensure 'agent' subcommand is executed when PUPPET_SERVER is set in the puppet environment.