basign-key: Add a feature to auto-detect a master key.