Fixed some bugs in the installer that were expecting files before they existed.