fix exit code always zero thanks to
http://stackoverflow.com/questions/1221833/bash-pipe-output-and-capture-exit-status