Compatibility fix for rebar 2.1.0

rebar_config:get_global/2 changed to get_global/3 with rebar 2.1.0
I've added code which checks the arity and adds the extra parameter (Config) if the 3-arg version is present.