zpm: return 1 when an error occured (fixes #195)