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