Fix --output-file CLI argument

This commit fixes it so that the file in not overwritten each time a
minion returns information. Fixes #8205.