Pass refresh=refresh, not refresh=False to pkg.install