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.