Minor releases of macOS 11+ increment the minor field rather than the micro field at the same rate as the Darwin minor field. Currently the getMacOSHostVersion test fails for macOS 11.1.
This adjusts the logic for the found macOS minor version from the Darwin version to be one less than the Darwin minor version unless the Darwin minor version, is zero, in which case the macOS minor version is also zero. This is a guess based on the past few releases: https://en.wikipedia.org/wiki/Darwin_(operating_system).