Escapes $var and $(cmd) in heredocs
Appends SSH public keys instead of replacing