configure: get latest git rev from HEAD not from master.

In tags there's no 'master' branch so use HEAD instead.