Fixed some errors in the postinstall script for debian