CQM-153 Shellcheck fixes. Simplified parsing upi options.

* on BSD cqapi shouldn't be locked when additional parameters passed