Fixed install and update script