Expand hashes while generating the agent config.

This fixes issues like the multiline codec not working with Chef.
Merge pull request #240 from gswallow/master

Expand hashes while generating the agent config.