Added package moving & indexing in Makefile and fixed makepackages script