Fixed broken linux update function