fix incorrect parsing of package dependencies