don't cache file if there is a nocache tag in the job_dir
Fix issue where bad key pop can lead to stack trace
Add the creation of the nocache file to the jid_dir