Fix 'use_sudo' config parsing in collectors

This fixes issue #342