Use `pfexec` for some parts of the hook script

This is required because we need all data as root user. If this isn't used we have some problems that `/root` is owned by the git user.
We would like to run this script also with other branches.