Either variant will do. But as a general rule you need to place explanation sentence ('когда он будет готов') right after the defined word, as the further the definition the more confusing to which word it is applicable. So, the first variant is a bit better.
But native speaker most likely won't see the difference.