Improve imported dependencies support, if there is a managed dependency
resolved from import, then added direct dependency version won't be
duplicated