simplify logic for theme and plugin installs