Move chown and chmod out of update script