Fixed problem with how tokens are cached on local filesystem.