Check HEAD for extra commits instead of master

Removes noise if one pushes to master from detached HEAD or just another branch

Change-Id: Icd62c2ee359b95877097a57a3b517434d9f7f5e0