Fix a typo that was breaking the open files test
fix another typo related to subprocesses in open file detection
Merge pull request #782 from eteq/fix-failing-open-file-test

Fix failing open file test