Added cache and log directory