Merge pull request #85 from CraigCottingham/master

Strip newline from output of one command before feeding it to another