gensub() is specific to gawk, this uses gsub() instead in order to build on platforms that don't have gawk such as macOS.