Doing a commit before file rename