Ha ha... Well, I didn't say it was a perfect solution, but I figured it would answer your question (I had run across that post before).
Ideally, in the future we might get something like Application.Version but for what you are doing, I would just set a global variable as suggested in the other thread.