Fix in $modx->getSettings

We have to replace [(base_path)] after merging user settings, not before.