Adapt rebar script to match the configure check

See ed25eac.