fix path registering issues (see below)

- a parent path of an already registered path couldn't be registered
- an identifier contained in a path couldn't be registered

Signed-off-by:Eric Villard <dev@eviweb.fr>