Add couple of functions to create cache directory corresponding to a given resource name,