Extend sys.path by a list of git paths.

def extend(path=None, cache=None):
    """Extend sys.path by a list of git paths."""
    if path is None:
        path = config.PATH
    try:
        path = path.split(':')
    except:
        pass

    sys.path.extend([library.to_path(p, cache) for p in path])