Define ROOT_PATH in chrooted environments too

Properly detect the ROOT_PATH variable if the HTTP server is chrooted