getdependencies.py: also check devices.xml for existing projects

Change-Id: Ia9118c96ce717e7a99c58ea0c3e86a4b5c7e3ed8
(cherry picked from commit 8c2f87a5f3b4ec313c325942c78e86bcb1bca726)