adding pre-script hooks
i++ -> i=$((i+1)) in util/Makefile