Remove uneeded extensions from partial filenames