Fixed issue with the path of the tmp dir