Fixed empty destination name if filename has no file extension.
Fixed empty destination name if filename has no file extension.