Fix wrong variable name
Revert prereq for tablespace creation

Postgres does need to be the owner of the tablespace directories, as it
insists on changing its permissions.
Fix sudo usage for running psql
Fix tablespace handling