Fixed bug with file pattern matching.