fix saveCacheFile...

Our deploys got reverted since 1.2.0 (is_writable is used on a folder that does not exist yet), this change fixes the issue...