Fixed permission issues in install script