make virtualenv prompt work and some tweaks