Fix writing \Service file