Save YAML file for each running mode

The YAML configuration is saved to the output folder only when using Pyxel from the command line and not when using function pyxel.run_mode.