Write version info to a separate file (fixes #196)