Moving cache location to datadirectory

Datadirectory is known to be writeable, this fixes the issue of caches being created/tried to be created in the execution directory.