SONAR-5643 Properly handle cases where there are local modification on files