use more robust heredoc syntax for updating the minion configuration

it appears that at some point configuration values containing ' snuck into the minion config. this patch will handle unescaped characters like that and many more