Fix reverting to parent for renamed file