Missed a call to function to create cache directory, doh!