Dereference variable name in `$modvar` for comparison