The path to the Pmodules version must be added to PATH in the profile. Otherwise modbuild will not be found if someone tries to build a Pmodule before using the 'module()' function.