setup: inline config/setup

Inline config/setup.
setup: optimize sed usage

Optimize sed usage.