Make --write-sql value optional instead of none

The option description and the code support a path, but the config did not.