src/shared: some stylistic changes

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
src/shared/path-util.c: revert change from realpath to canonicalize_file_name

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