Rebased b11326d - tmp_dir param for systems with noexec on /tmp