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