Implements in place renaming file or directory.