fix: correctly handle (re)moved files