minor safety corrections to debian postinst