bugfix fun.sh

move MODULESLIST check down below config sourcing