Fix features detection when rebar is used