[PATCH openEuler-1.0-LTS 2/4] tools build feature: Check if get_current_dir_name() is available