out_xyz: fixed filename numbering, updated

Hadn't touched this since I wrote it... half a year ago. And yes, it's better to have any const char * inside functions rather than being outside. Did tests with msg_phys.c and found out it saves around 20 lines assembly.