Fix directory_cache to not raise if s3 config is missing

We currently set `type: s3` by default in `worker.yml` for enterprise. This means that builds that opt into caching, while te-worker has not properly been configured for this, will run around in circles, raising an exception during script compile time, and retrying forever.