Revert "Revert "Merge pull request #386 ... gpb-recompilation...detectio...

Reverts rebar/rebar#413

This broke master again