Fix a problem when root is not /.