revert moving the replaceExt to after sourcemaps are applied

Move replacing the extension to after the sourcemaps are applied.

Closes #107