Fixes issue with an undefined root always getting a leading slash.