Fixed some issues with the provisioning scripts