Add update-dir script and update -sync scripts accordingly.