Silence Lengthen Not Working as Expected

The code you are using is ancient - one of my early attempts at modifying Nyquist code. There is a later version here: Extend Silences