[#14] replaced Dir.foreach with Dir[...].each.