Use ${PWD:A} when checking for leave event

Use the absolute path when comparing to the absolute path of the
previously entered dirs.