Check if root when striping trailing slash