fix file-limit code on linux
don't catch and rethrow (it kills the stack trace)
Merge pull request #542 from slang800/fix-file-limit-linux

misc fixes