Fix some issues in setup.py test.
Fix some issues in setup.py test.

While tracking down a troveclient issue, found several issues in
the new python setup.py test command:

* check the right source files when we're trying to decide whether to
re-run egg_info
* fix bogus dependency links args when installing test requires
* fix bogus .egg_info dir name when a project name includes a hyphen

Change-Id: I0a1964902a87f72eb67f43b10f90dfee8c7d7875

redhat-openstack/pbr,openstack-dev/pbr,citrix-openstack-build/pbr,varunarya10/pbr,klmitch/pbr,citrix-openstack-build/pbr,openstack-dev/pbr,redhat-openstack/pbr,WiFast/pbr,JioCloud/pbr,citrix-openstack-build/pbr,openstack-dev/pbr,JioCloud/pbr,klmitch/pbr,WiFast/pbr,varunarya10/pbr