if a dependency contains a recipe name trim it before adding while building depsolver constraints

Ensures compatibility with ruby code, which strips recipe name before passing the graph along to depselector.