Fix parsing of folder name.