fixed file name checking by check the last idnex of .
2 files changed