Fixed issue on dirget : double extension in file name