Fixed file name handling in RuleSetFactory::getIgnorePattern, updated tests