expand_user_path: do not look at NULL path