Fixed broken login in command availablity check in non-debug mode