Fixed file ending comparisons.