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 PAC-man/pac-4.4 into pac-4.4

Change-Id: I2c3b279aee217635d2e2d05019f8a5650f71635f