Make build button work for plugin and mobile