Write the current version to a file