tisdk-image: Fix issues with manifest generation.
tisdk-image: Fix issues with manifest generation.

* Issue with parsing last entry in package index.
* Issue with substituting for '|' in license field of text manifest.

Signed-off-by: Jacob Stiffler <0ec61db87821c27ca8ee6f3e24c6f93fdbb785d4@ti.com>
Signed-off-by: Denys Dmytriyenko <d29de71aea38aad3a87d486929cb0aad173ae612@ti.com>

MentorEmbedded/meta-arago,MentorEmbedded/meta-arago,MentorEmbedded/meta-arago,rcn-ee/meta-arago,rcn-ee/meta-arago,rcn-ee/meta-arago,rcn-ee/meta-arago,MentorEmbedded/meta-arago,rcn-ee/meta-arago