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

Change-Id: Ia9118c96ce717e7a99c58ea0c3e86a4b5c7e3ed8
Make the repo snapshot optional

Change-Id: I6d1778b8e04e68675207f533a86501369df8f473
Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>
(cherry picked from commit a3982abaf3f473d994b181968dd0a445984e4a35)
Merge branch 'pac-4.4' of github.com:PAC-man/android_vendor_pac into pac-4.4