git-info: POSIX compliance

Replace `echo -n` (non-POSIX) with an helper function `echon` echoing a
newline after given expression.