Better source file line detection