Fixes for tmp dir if not given by config/user