Typo fixed in the exec function (%opts instead of $opts)

Typo fixed in the exec function (%opts instead of $opts)