fix evaluation of empty batch scripts