fix missing space in conditional in generated replication script