re #91: Check the result of glob first before iterating