if condition not working in shell script