This patch fixes a few issues in the sweep scripts, bringing them up-to-date with the latest memory configs and options.