Decouple vcs tests from developer environment

bzr and hg tests break in certain developing enviroments.
This pull tries to fix some of those.