Properly return the right exit code in the info page

Fix #733