make update work with --global (or -g)