Automysqlbackup - Use proxy when required, and minimal code cleanup