Refactor cdist-info script

Use -g for GLOB option instead of -b.
Define and use functions.
3 jobs for feature/libexec in 48 seconds (queued for 4 seconds)
latest
Status Job ID Name Coverage
  Test
passed #1788
pycodestyle

00:00:14

passed #1789
shellcheck

00:00:16

passed #1787
unit_tests

00:00:17