Add ability to select Cognos environment

Based on command line arguments, get logs from specified servers for
each Cognos environment and version.
Fix typo

The d flag in getopts had a trailing colon which expects an argument.
Passing the short -d flag gets ignored which is not desired.