Save project properly when renaming files