[PATCH 4.14 11/43] tools build feature: Check if get_current_dir_name() is available