Fix file descriptor duplication failure

exec {x}>&1 syntax isn't recognized on some systems, so file descriptor
duplication has been changed to use a constant.