Adds directory creation on renaming files