update method for checking if script is installed