qa_crowbar: Detect TESTHEAD also for local repos

Add possibility to use the staging packages when using
local repositories.