Replace base_dir with cache_dir.

Instead of setting base_dir in BaseParser, let's set cache_dir
which describes better our intentions.