Remove unneeded file extension