Preventing from renaming or copying files onto themselves