fix(fileManager): Fix add a new file (refs #4513)

Preserve index of external modification
Merge pull request #64 from cbonnissent/I4513

fix(fileManager): Fix add a new file (closes #4513)