fix bug that shows up on latest mavericks with -n on echo from shells