Corrected bash conditional to do proper string check