Improve iteration over dotted config keys
Improve iteration over dotted config keys

- Skip interpolation of values
- Use `yield from` to simplify recursive calls
- Simplify branching and remove some duplication

wylee/runcommands,wylee/runcommands