Fix reference counting in both versions of scandir_helper (Issue #6)