Add sudo_flags configuration option to alter sudo behaviour

Default to -H to set $HOME appropriately.