fix: do not set extglob globally to avoid side-effects
Instead only enable it for whatever operation requires them.
Example sides effects: commitpkg can accidently execute PKGBUILD functions when sourcing the PKGBUILD that has function names like package_libsigc++()
Fixes #87 (closed)