Overloaded the posix::directory#rename() method for a target directory.