Improve app version detection