mpv uses lua without directly executing the "lua" binary, so prefixing $PATH wasn't enough. Without this change, lua scripts were unable to import luasocket.