Reorder liblua searching

 Fixes building on systems, which also have lua 5.2 as liblua.so.