Added preinstall and postinstall script