Make sure that tmp_dir is owned by sudo user