Moved appname/version macros to top of file