Why isn't this reading version and appname from the code?