Add extension to functions when sourcing in scripts