clean up some never to be used code.
use the correct tmp dir