Refactor -n & -U options checks from try/except to if/else

Signed-off-by: Bogdan Dobrelya <bogdando@mail.ru>