Autoconfigbackup - Use proxy when required, and minimal code cleanup

2nd attempt ;)
Please use TAB to indent instead of spaces