Type fix and checks for tools packages (#1403)
Type fix and checks for tools packages (#1403)

* Fix scripts/packages typings

* Prevent empty packages list when invalid distro
LibreTime/libretime,LibreTime/libretime,LibreTime/libretime,LibreTime/libretime,LibreTime/libretime,LibreTime/libretime