Path passed to the language server

This has cropped up before: see this thread for a discussion, including code for a workaround by yours truly.