[nim, mj] Fixing naming errors in spawn_env script