bug2issue: Fix error returning codes in the bug2issue

This patch purifies error returning codes used in the bug2issue.