checkloc - Fix path calculation