Added support for dpkg triggers (fixes #595)