changed the temporary-directory for the sort calls