async_file_sum: do not hang if argument is directory