Remove old unused code.
Fix active env test when multiple paths are present (git tool on Windows).