Fixed unicorn provisioning script and related errors