Check if HTTP_USER_AGENT is set.

In some circumstances the HTTP_USER_AGENT server variable is not set (CLI execution) which resulted in a PHP notice. By setting $bot_test to 'cli' or 'other', we have more possibilities to fine-tune the bot control.