Improve management of the pupept config dir

This code merely leverages the parameters to create the directory and
avoids hard-coding paths in places.