make use of Dir.glob param to avoid iterating multiple file patterns