Check for trailing slash in path name