Switch to dup2 from dup3

dup3() was being used in a situation where dup2() would suffice. uclibc
does not support dup3(), so we switch to dup2().

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>