Fixes #5401: Create a shell script that list all .cf files compatible wi...

...th a given cf-agent version.
Nitpicking, but important: please use braces on all shell variables