Fixed directory checking in Settings