Improve dependency retrieval script and list