A husband or master is the Saxon guma or goma (a man), which in the inflected cases becomes guman or goman. In St. Matt. xxiv. 43, “If the goodman of the house had known in what watch the thief would come, he would have watched.” Gomman and gommer, for the master and mistress of a house, are by no means uncommon.
The phrase is also used of the devil.
There's nae luck about the house When our gudeman's awa.
or St. Gutman. Patron saint of tailors, being himself of the same craft.