Add filename check

Add check if file is renamed or not.