lua-releng: fixed perl syntax errors and warnings.