connect_to_local: check cfg for None

Use all defaults in case of empty configuration file.
Solves issue #35.