fixes: minor for loop var usage and null comparison fixes
fixes: minor for loop var usage and null comparison fixes

JarvusInnovations/node-posix,ohmu/node-posix,ohmu/node-posix,heavyk/node-posix,heavyk/node-posix,JarvusInnovations/node-posix,JarvusInnovations/node-posix,ohmu/node-posix,heavyk/node-posix