fix - bug trying to change permissions on cache dir