include only valid dirnames