quote pkgname, redirect error message from sips
fix redirect of err