Flush output of exception error messages

When running on OS X, an exception thrown in a plugin was resulting in
no output from lein.  Adding the flush ensures the output occurs before
the process exits.
Include group in dedupe key to fix #1480
Merge pull request #1497 from jcrossley3/dedupe-group

Include group in dedupe key to fix #1480