Added 'cachedir' option