fix 'if' of 'checkcmdline' function