Fixes scripts array for new installs, checks for existence of array