[COOK-2672] read output into memory before printing to avoid pager

Fix by @wenzowski https://github.com/opscode-cookbooks/dmg/pull/11