Got rid of  nasty 'highest version' dependency code.
some updates

Signed-off-by: Alexander Skjolden <alex@plastboks.net>
more updates

Signed-off-by: Alexander Skjolden <alex@plastboks.net>