Improved glob matching for files