Fixed issue with variable declaration in install script