Fix paths in discovery exception.