Make batches consistent with shell script behavior.

Batch reads from CMake cache, if necessary, when the option is not passed explicitly.