Rework API for sourcemap filenames and paths.