chroot_version_hooks.d: clean out stale kernel modules

Now that we no longer orphan kernel modules in /lib/modules for boards,
we need to clean out old builds.

BUG=chromium:348247
TEST=ran with no boards in /build and saw no errors
TEST=ran with one board (but no /lib/modules) and saw no errors
TEST=ran with a full board and saw nothing removed
TEST=ran with a board with stale files in /lib/modules and saw them (only them) removed

Change-Id: Ib6c0eca61fdc4560bb06eebf8895d94bf64b3e45
Reviewed-on: https://chromium-review.googlesource.com/190491
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
1 file changed