Fixed cache paths and overhauled the init script again