Fix broken distro detection in lualib.mk...

Detecting Linux is much simpler than detecting Ubuntu and it should be
safe (even though not required) to pass --no-as-needed to the linker on
almost any other Linux distro.

Using /etc/os-release is not reliable, as it's not always present.