Added detection for renamed files