Use new autoload functionality

__autoload() function is deprecated and not usable when in CLI interactive mode (Note 2). See: http://php.net/manual/en/language.oop5.autoload.php