fixing osx lua not interpreting ret codes correctly
Merge pull request #4 from dudymas/fix-osx-misinterpreting-retcodes

fixing osx lua not interpreting ret codes correctly