Initialize working directory before initializing CacheManager so that
CacheMangager will use proper cache directory