Fixed bug in postinstall script