new pkgbuild_version 3 because logging prevents cd

In the new pkgbuild-format, every function has to cd again!