Fix packager and deployment issues

This implements half of the #562 issue (error reporting is not disabled, because `sed` is not available on Windows).