buildCommandLine function

Generate a command-line representation of a configuration