stage2: proper file extension stripping

Previously it used mem.split on "." and took the first iterated item.
Now it uses fs.path.extension and strips off that number of bytes.

Closes #7404
1bbf731e7eAndrew Kelley committed on 12/12/2020, 12:44:33 AMparenta6de0b4
3 files changedLine totals unavailable