marmalade-add-package: fix a bug with multiple packages
details on the mongo conversion