Make sure 'cache' and 'logs' directories get created