Use config_value() to get option state
Add test for --no-sync option