Use resolve_name instead of __import__.

util has a resolve_name function already. Let's use it.