Fixed errors in installation script.