Simplify cache-directory creation This change adapts the creation of the directory containing the websession-cache to the method used in the HA-plugin, which simplifies the code. Change-Id: I366fe42f0382e4f682c95da38ffb4edc8b5ba079