Revert "Improve ptrace-error detection on Linux targets"