def differ_paths(old, new):
    """ Compare old and new paths """
    if old and old.endswith(('\\', '/')):
        old = old[:-1]
        old = old.replace('\\', '/')
    if new and new.endswith(('\\', '/')):
        new = new[:-1]
        new = new.replace('\\', '/')
    return new != old
