Stop using arrays in shell script