Fix broken dependency resolver

 * dependencies can have versions
 * remove version before sorting dependecy graph

Change-Id: Iceefd7939fffcb5c5ad94d0e915de9e2d6eba172
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>