Resolve the avatar_dir path to uuid.