parameterize confdir

Here is a fix I put together for #46 which I filed. This is my first time forking and doing a pull request, so hopefully I did it correctly.