On windows 10 had issue with parsing on line
for string "before_fw_simulator_major_refactoring-361-gafb3df8"
After fixing to below regex, script ran ok
Please consider to update
matched = re.match("^([a-zA-Z0-9\.\-\/_]+)-([0-9]+)-g([0-9a-f]+)$", git_version_string)