Modified index.make_almost_virtual, added remove_extension paramater