label: move is_dir() to util.c

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
src/shared/selinux-util.c: add path_is_absolute() check

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>