Adjust all the needed paths when using upstream repositories

Having a separate 3rdparty_upstream might not be the best solution
after all, but oh well.

Change-Id: Ib834c4d9d56669a3f4308eb614cec787116d6d4c
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>