Fixed bug which was propogating isExternalDep incorrectly, and also where the resolved deps weren't being treated correctly as local or external deps.