Refactor scanner

1) use information from the Gem::Specification to find ruby scripts
instead of scraping the gem's directory

2) Create units for Gem dependencies where possible.