Fix bugs when loading jedi for different virtual env