Fixed file pattern handling.