Check files have correct extensions.