Fixed bug in localcacheregistry where files weren't created if parent directories didn't exist