pkgix: Add preremove hook

Signed-off-by: Marco Elver <me@marcoelver.com>