Fixed an issue with the document root path when using the CLI