builder: separate script to get last git commit