whereis: canonicalize directories paths

Signed-off-by: Karel Zak <kzak@redhat.com>