Remove prefix subdirectory from index before read-tree

git read-tree will not overwrite any contents. Therefore the
subdirectory has to be removed first.