Generate version and root files with newlines at the end