Fixed rootdir escaping bug