fix path comparison