Improve idempotency for homebrew/dupes, gcc-4.2

Fixes https://github.com/thoughtbot/laptop/issues/195