write version string to file