def os_family(ctx):
    """Retrieve the OS Family of host environment

    Args:
      ctx: the Bazel context object.

    Returns:
      Returns the name of the OS Family
    """
    if ctx.attr.os_family:
      return ctx.attr.os_family
    os_name = ctx.os.name.lower()
    if os_name.find("windows") != -1:
        return "Windows"
    if os_name == "linux":
        return "Linux"
    return os_name