reuse existing file descriptor when caching job types

Found this after grepping around in reaction to #156.  This should eliminate another location where we could leak file descriptors over time and also keep from opening two file descriptors at once.