Use string comparison instead of length when comparing paths.