chore(travis): fix bug in hooks script