Fix crash on launch.
Write the version numbers directly instead of going through Xcode.

Had some problems with the appropriate files not being rebuilt when the version number changed.