Allow any environment variable to be used in working directory field.
Check working directory exists before attempting to run command.