take care of the case where R_TempDir is not inited at the time prepare_set_user is called