The gnat and gprbuild tools are not necessarily in the PATH when preparing the port since the effective location is specified by the --image-muen-gnat-path RUN_OPT.