sgw: policy script: fix some comparisons