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
6ab5bebed1Andrew Kelley committed on 12/12/2020, 12:42:13 AMparent52bc144
3 files changedLine totals unavailable