Ugly path checker.