Use correct operator in test in shell script