Fix update_dependency script: cd into absolute path.