Messed up isdir test. XP