Added METADATA_CRYPT_KEY to export_env_dir.