force restorepackages to execute before building.