use the correct match_pattern to find existing preference dirs for each IDE
Refactoring match_pattern duplication
Fixing match_pattern bug in IDE pref dir targeting