sigtool: Use closedir() to close directory pointer