Replace console-based file search with Dir.glob