replace shutdown/reboot with systemd cmd's and clean up double quotes