added support for virtual env. fix bug with old git version
hmm