Return the application return code in all cases (instead of just background mode).
This small patch correct issue #2 where the return code of the designer binary is not propagated through the shell script wrapper (it was only in background mode). This is probably true of many other scripts as they are based on the same wrapping snippet....