cluster: fix script semantics

Addresses issue #11.

@u-c-l, I think this only takes effect on some tiny corner cases. Can you anticipate any other issues?