lmod: add functions to profile.d