fix echo to remove a newline on linux