Fix legacy cache purger when eZ is not yet installed

This PR fixes situation where `cache:clear` command is invoked while eZ Publish is not yet *installed* (e.g. setup wizard not launched at least once).

This situation occurs when launching composer scripts.