nova: fixes units tests failures when run using rpm

Was missing a critical step - python setup.py egg_info. This patch also fixes
the way git repo was cleaned. It now uses git clean -qdffx to cleanup.

Running tests in virtualenv uses (almost) the same command as running it with
rpm packages.

Change-Id: Ida436f06af456e7d758292482a99c2493ad45294