Fixed issue #609 - method to detect VCS backend

http://stackoverflow.com/questions/11935786/pip-freeze-reports-version-number-instead-of-git-sha-for-certain-package

After I saw this question I tried fix this, I don't know if is the best way, but now works ok.