fixed preun for newer linux distros