fixing bugs in dockerfile-with-env