Function replaces `cache_path` variable

Fix for issue #13.