Add closing </plist> tag to loopback script and format it