make tracebug source insertion work with tramp

  It is pretty slow though.

git-svn-id: https://svn.r-project.org/ESS/trunk@5652 0bbaf3bd-34e0-0310-bf65-c717079852d4