made tmp dir path a commandline option