Remember the resolved path we used with tern so that jump to definition across files work. Also clean-up some error conditions when the definition location is not known.