Update file::getExt function