Fix pg_restore script