This line should likly be:

    [{Major,CN,HN} | _] ->

As is only 2 version permutations are allowed, anything else will get a case_clause error.

I found this while building a riak_test for cascading repl, which supports 2.0, 1.1, and 1.0 versions.