added option to set the tempdir
handled situation where a language code we do not have a dump for is specified