Improved filename matching pattern.