only try to read from env when it is desired

fixes an issue in which specifying `-e xxx` was still trying to read env vars