Read version information from VERSION file

def read_git_branch():
    """Read version information from VERSION file"""
    try:
        with open(CC_INIT, "r") as f:
            found = False
            while not found:
                line = f.readline().strip().split()
                try:
                    found = True if line[0] == '_git_branch' else False
                except IndexError:
                    pass
        branch = line[2].replace('"', '')
        if len(branch) == 0:
            branch = None
        return branch
    except IOError:
        return None