print cmd_in_env earlier