shell: Patch things up when cockpitd fails to parse a systemd unit file.