add updateCPathInFolderInfo: withCPath2 definition
remove leftover foreach loop

these are not supported by earlier versions of gnustep
While there, fixed var definitions