Bug fix for the case where only reduce command or only map command are specified