MT#4517 Get rid of bashism in init script