Remove some unused variables.

No functional change.
build: Another corner case in munge function.

In Rawhide, /media is now a pointer to /run/media which does
not exist.

This caused us to loop indefinitely in the final case, calling

  loop ("/" :: "/media" :: rest)

because "/" was never marked as "seen".  Marking it as seen was the
simplest way to break this loop.