Use boost::filesystem::current_path in ChangeToTempDir