configure: don't use sudo -i for killing Puppet agent

To avoid this message: "stdin: is not a tty", just use sudo command.