Return the correct path when caching elsewhere.

When the cache couldn't write the jobtype class to its intended
destination and writes to a tempfile instead, it should return the path
it actually wrote the class to instead of the originilly intended one.
Merge pull request #86 from guidow/jobtype_cache_bugfix

Return the correct path when caching elsewhere.