Fix path checks