fix bootstrap with Lmod, fix issue with module function check