Fixed serious incosistency in batch files