Getting stdout, stderr redirection working on OS X