Trim webPath really properly