improved error handling (package does not result in shell error code when build fails..)