fix creation of cache folder if already exists.