lib/update: ability to shutdown

Based on which files changed in the repo.
The regexp matches files in repo root, lib/ and plugins/