Fix bug in path name related to root folder