Python 2.6 doesn't have os.getresuid
Fix getting errno (prevents OSError: Success)