Make renaming directories work.