@pmonstad said:

syntax error in conditional expression: unexpected token (

Probably CentOS 5.11 has a pretty old version of bash running which cannot handle regular expressions in condition clauses. I guess there is no easy solution to this but update your OS. Probably best if you can setup a new server for testing FOG and if you are happy with it you can still consider updating your existing OS.