Fix postgresql init file template

* data_dir does not exist by default, so we should check for
the directory above
* prefer '-a' to '&&'