Replaced "exit" functions by proper exceptions in the script used to build
easybook as a ZIP file.

This error was found by SensioLabs Insight (analysis #1):

  exit() and die() functions should be avoided