Fix detecting file renames

See #12