changed get reources list script on cacheUpdate

getting rid of one space in front of each line and the last empty line.