[util] get_current_dir_name was not portable