Fixed missing logic for install script. Closes #1024