added option to specify cache directory on the command line