build: fix bash completion sourcing

Sourcing functions in files from a function within a file being
sourced was giving bash a hard time. This fixes 'repo' command tab
completions.

Change-Id: Iac1b3078e20749fb474ed1270e0886cf435e24d9
Build: merge CyanogenMod

Change-Id: Idf6aae7ef4390ce294f7d22f9e4eccd3ea0eaf9f