get the envdir and command from the command line