Refactor ssh_config management during test
Fix some edge cases in mysql wrapper