Fixed some further issues with provisioning script.