[PATCH v3 04/14] scripts: port make-gpt.sh to bash