Fix Lua access() calls

Apparently there's no such thing as `posix.R_OK`. This patch replaces it with just "r". AFAICT "r" is also selected when passing `nil`, and that's maybe why it woked fine so far.