MT#5887 copy the original config.yml file and restore it after the tests.

(cherry picked from commit a17d3c9ef4f2693fb05db603f2594278b3f8ffad)

Conflicts:
	bin/config_debug.pl