Revised postinstall script