Fixed #21 -- ensure postgres data dir is created before installing templates.