need "unset -f" instead of a plain "unset" to properly unset functions. Eg, in makeCGAL
unset -f _foamAddLib ....
@matej @andy