change way pkg_resources is detected. remove NameError catch.