properly get dependencies

Issue #55
Merge pull request #71 from metridoc/correct-downloading-deps

properly get dependencies