Correctly preserve timestamps on directories by setting them after the
file copies have been done.