Not a response to your ultimate question, but if this is all you need then Mix.install solves that problem without needing any other changes to your script.
Not a response to your ultimate question, but if this is all you need then Mix.install solves that problem without needing any other changes to your script.