Move `agent_env` from argument to options.
Allow script to be run from any directory.