Removed calls to SplFileInfo::getExtension() for compatibility with PHP 5.3.3