Automatic BASE_URL_PATH setting

For people (like me) who forget to source their rc files and thereby make apache2ctl graceful fail.