git-info: POSIX compliance

Replace `echo -n` (non-POSIX) with an helper function `echon` echoing a
newline after given expression.
Merge pull request #280 from valeriangalliat/feature/git-info-posix

git-info: POSIX compliance.