Moved everythign into the post-package-install hook.