Move some helper functions out of Autodetection.
tree6fa738e228b14e300faa42ffd9827e06ca935084
drwxr-xr-x - android
drwxr-xr-x - apps
drwxr-xr-x - backdrops
drwxr-xr-x - bootloader
drwxr-xr-x - debian
drwxr-xr-x - docs
drwxr-xr-x - firmware
drwxr-xr-x - flash
drwxr-xr-x - fonts
drwxr-xr-x - gdb
drwxr-xr-x - icons
drwxr-xr-x - lib
drwxr-xr-x - manual
drwxr-xr-x - packaging
drwxr-xr-x - rbutil
drwxr-xr-x - tools
drwxr-xr-x - uisimulator
drwxr-xr-x - utils
drwxr-xr-x - wps