fix sqsubstr.m to allow empty num_cores and num_nodes fields in batch_config.