Override pkgname when executing pkg scripts for proper behaviour.