fix problems in wcs controllers.
use TdsPathUtils.extractPath everyehere.