Bugfix: BASE misdefined in command line mode

For example, if a script is called like `php index.php /test`, `BASE` contains `index.php` instead of being an empty string.