Reimplement parse_file() in Lua and add check-install Makefile target