Using canonical paths breaks with symlinked components. Also the editor filename isn't canonical, so comparing them breaks. This reverts commit efcdadd2.