Check both raw and real paths when finding entry

Previously checking only the raw path would cause files in
symlinked folders to not be selected properly when the editor
was made active.

Closes #246