System call now performed in tmp_dir