[nim] Fixing syntax error in spawn_env script