gp_mkpkg: Use sys.exit(1) to exit with failure

system.exit() doesn't exist, it just happened to have
the same effect (interpreter exits because of a NameError).
gp_mkpkg: Centralized error reporting

Error messages should be printed to stderr.