Fix cacertdir issues

The cacertdir was hardcoded to params value. This was bad. Made param
in class for cacertdir to override