Fix testing of user setting constants

As per [the documentation](http://php.net//manual/en/function.defined.php), `defined` accepts a single argument in the form of a string (naming the constant to be checked for). The previous change did not follow this, causing user settings to be ignored.