Exit if tmp_dir is not writable