Fix testing the return value of std::rename().