Make sure cache directory exist before spliting the files