Update activate

Should work more generally.
Tested on debian.
Fixed for ZSH
Tabs fixed
Second check fixed