Updated to get the default cache directory
Updated to work with cmsms 2.0