Merge pull request #1615 from palmtenor/lua_biosnoop

Port fixes of biosnoop from Python to Lua