Improvements to activate script

When I ran `mocha` I wasn't getting all of the tests or the cleaner running
because I wasn't using the mocha() function owing to direnv.

This fixes that.