add check for pmodload, fallback to sourcing if it is not defined