Fix to file extension checker