[CentOS] bash script fails conditional test