[Fix potential bug] if the name of EDF files ends with any upper case
characters of '.edf', the old code cannot handle.