fetch_packages.py: also support file other than packages.xml

Change-Id: I8a73d65ff6be30fc35825f46192a3dc574201106