When this code was originally implemented os.UserCacheDir wasn't public so this used a copy of the code. This commit replaces that now out of date copy with a call to the now public stdlib function.