Validate the program name before using it as the hab type
Validate the program name before using it as the hab type

Also fix a cosmetic cut-n-paste error in a warning message.

ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead