updating packaging to fix upgrades

added logic to debian/postrm script to prevent files from being deleted during upgrades
There's already a shebang earlier, and the shebang has to be the first line of the script - replace the `/bin/sh` before?