Resolve sub packages when loading path based dependencies. Fixes #347.