Custom update script for SSH device throwing exception