use real path when register a new command type

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