Remove dependency on lodash, fix portscanner dependency