Improved route dump to file.