Initialize working directory before initializing CacheManager so that
CacheMangager will use proper cache directory
Merge pull request #242 from chuckdumont/work2

Initialize working directory before initializing CacheManager so that