Fix File#(extname|basename)