Use sed instead of sh for Informative Git Prompt.

Informative Git Prompt assumes that sh is bash compatible, but that's
not the case for FreeBSD. Fixes #1140.