fixing the variable concatenation in shell script