added function to create some cache directories in the legacy
readded chown targets for caching directories, which are created by the post-install script now
added creation of cache directories on post-install