Changed syntax of ignore list check to be compatible with bash 4.2.