Modified autorefresh.sh to run with the latest version of the service-manager