Better flycheck path logic