Log version number to file, fixes #286 (osx)