Improve exception description when finding module dependencies

Change-Id: I26b2e057f2b2e99d6a5ea5bca2366a1dc6ae317a