Fixed setuid() return value check