Updating to work with v 2.2.0

Replaced call to see if the user is superuser (changed in the Piwik
core).
Changed the directory separator to use the PHP constant