Don't loop through dependencies if there are none.

This fixed my problem in issue #212.
Merge pull request #213 from trusktr/patch-3

Don't loop through deps is there are none.