Work around 1.8.7 issue with Pathname.each_filename