[WAC] bugfix checks for trailing slash at root