Update activate

Should work more generally.
Tested on debian