fix update script, copy codes path