sledgehammer: Fix regexp to detect boot entries

It's some hexadecimal number we're looking for.
sledgehammer: Make sure that MAC variable is empty unless set

Some code path was not doing that, which could result in using a
pre-existing env var.
Merge pull request #2053 from vuntz/sledgehammer-fixes

sledgehammer: Fix regexp to detect boot entries