issue-161: Fix the case where a directory mapped does not have parent.

It happens when one wants to map a directory from the root of the project.
In that case we use the `basic` mapper on the directory itself.