Set class loader when refreshing plugins