Cleanup: Extract to lib
Support build_config setting
Find driver command