Removed loop from scripts package installation, as this has not resolved the problem.