Hm, you wouldn't be
duplicate posting, ignoring answers, and then reposting with new information, would you?
Regardless, it looks like the answer is right in front of you.. you even included it in your new question - hint: your code won't work if your module installation failed.