fixed install script
Merge pull request #816 from adamralph/815

fixed install script