fixed long file name pattern matching