Clean package index files. Set workdir.