Fixed prerm.sh script for packages