Made sure filename pattern matching is done only on '.' not also on '-'