Modernize 4366 unrevert
fix bash string comp