replace: Add checks for setreuid and setregid.