Filter last opened path relative to project

Previously the full paths were compared which could cause duplicates
because of symlinks or case insensitive filesystems.

Closes #28