check file extension