pkg2: use dir=pkg for more git commands instead changing directory.
pkg2 wip: stub of the update function.