Redirect output for nodejs app, better way