fix one of regression test (foreign sigsegv) on FreeBSD
fixes in regression tests for FreeBSD where Linux-compatible procfs is normally not mounted
Better Linux compatible procfs detection