Made the UMASK variables local, otherwise selector-cd-search still changes the umask.