Fixed #21 -- ensure postgres */etc* dir is created before templates.