ugtrain: introduce fork_wait_kill() for disc stage 1

This way we can detect if the game process has already been
finished or not. If it has finished, we stop reading from the FIFO
by killing the forked reader process.
libmemdisc/hack: beautify source code style
libmemdisc: enhance CLI message output
libmemhack: enhance CLI message output