Write build number to file.