move extension dir category helper into the directoryServices module

(integrated from trunk branch change e21f246 by Todd Whiteman <toddw@activestate.com>)