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

Change-Id: Ia9118c96ce717e7a99c58ea0c3e86a4b5c7e3ed8