added version detection to install script
Merge pull request #176 from ianjw11/master

added version detection to install script