Added preinstall script to build plugin if it doesn't exist