Use rtrim incase the DOC_ROOT contains a trailing slash