def fix_overlapped_path(bower_root, filename):
    """
    Checks for duplicated 'bower' string in `bower_root ends` and `filename` begin,
    If exists, it removes duplicate from `filename` and returns the modified `filename`
    :param bower_root:
    :param filename:
    :return filename:
    """
    if filename.startswith('bower/') and bower_root.endswith('/bower'):
        filename = '/'.join(filename.split('/')[1:])
    return filename
