Maybe define a list of liblua names, and then use `find` and a loop to find one that works?  This would be more general than requiring a specific case for each distro.