fixed use of newline with echo and backtick in bash shell so should be stable