Import move-if-change script from gnulib.