Avoid stack overflow when checking dependencies

Issue #53
2.4.11.1 Release