refs #4053 use similar code for themes and plugins / install and update