solaris: fix solaris package script and add work-around for pkgmk bug

When building a tagged version of dCache, one of the directories is "-P
pkg".  The space in the directory name breaks the script and pkgmk
application.

This patch fixes the script by adding quotes to paths and adds a
work-around for the pkgmk bug.

Target: master
Patch: https://rb.dcache.org/r/7212/
Acked-by: Tigran Mkrtchyan
Request: 2.10
Request: 2.9
Request: 2.8
Request: 2.7