dist/freedoom: Convert if block into case statement

As mentioned by fraggle, the if block had a final redundant step, plus
it was a little bit unclear to read compared to this version.
dist/freedoom: use exec to launch a port

exec will terminate the script itself as well as returning the exit
code from the port.