simplify check if path begins with leading /