Use echo properly to avoid newlines

@cmelchior @bmunkholm @kneth