Use pathinfo() instead of SplFileInfo::getEXtension() for php lower than...

... 5.3.6