set correctly the tmp dir