Fix implementation of map_location::get_relative_dir