Small fixes to auto-provistioning script