fix dontRequireTtyForSudo

- Use `sed -i.brooklyn.bak` instead of `sed -i`, so works on OS X
- Don't wrap in `bash -c`, so works with SshCliTool on CentOS/RHEL/OSX