Fix reference counting in both versions of scandir_helper (Issue #6)
Merge pull request #7 from htoothrot/fix-refcounts

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