Install update for userdir paths

When user directories are enabled in Apache the document root in the
$_SERVER var does not match the user's document root.
PHP Strict undefined constant DATA fix

Check for DATA constant, if undefined set $plugins as empty array. Check
for non-empty $plugins before looping.