Fixed permisison check on non-existant cache folder