Files singledotdirs

Fixed normalizePath() to strip out single dot dirs.

Please review @icewind1991 @karlitschek @DeepDiver1975