add original version for 1_56 patch
update patch and patch_check for atomics
update the tmp_dir_helpers patch check
doh