Fixing double file extensions