Fixed problem when using the web server root as base path