minor bug fix in calling the agent via command line