Clean script for the build.

Removes zfs data sets, nullfs mounts and a bunch of other
things that can cause later builds to fail.
(cherry picked from commit d39fbd81a3f631177b2c9603551cda2974ad871b)