only extend $MODULEPATH with a non-empty list of paths