[PATCH 4.14 38/45] perf utils: Move is_directory() to path.h