change to redirect to avoid "Bad fd number"

OS specific problem (ubuntu). Need to be checked to confirm it's compatible with other OS/Shell combos.
See here for details:
http://blog.stefan-weigand.de/2008/09/23/syntax-error-bad-fd-number/index.html