Call export_env_dir

cc: @naaman (last one, I promise :))