Despite Mihawk not being the goal itself, he's the "personification" of Zoro's dream.
In this sense, he's "necessary", but as long as he maintains the title.
But yeah, if Mihawk were to be killed by Shiryu or something like that, Zoro's goal does not change. He just needs to fight someone else that isn't Mihawk.