Make bot.pl work from any path