Use erl_parse:get_attribute/2 in cover

Avoids treating node attributes as a simple line number, to ensure that any change to the attributes format won't break cover.