Fix: if condition to check file ext