Make Dir.glob work for directories