check both old and new paths in rename event handler