Travis fix

Should fix: Use of uninitialized value $ref in concatenation (.) or
string at ./script/git-head.pl line 17.

Test: Use of uninitialized value $branch in scalar chomp at
./script/version.pl line 11.