Fixed a bug when getting document_root for a debian distro