Changed git detection code

Changed the grep so it now looks for the package name at the
beggining of the line instead of anywhere. This caused a problem
with git due to another package being installed that had git in
the package's name.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>