check if frame matches sourcemap.file

Using the first filename of the frame will lead to improper behavior
when the frames don't start with the filename of the file we are
actually mapping against.