Fix autoupdate variable declaration.

Newer perl versions demand that local variables be declared with the 'my'
keyword.