better version comparison function for luarocks