added a missing carp module loading
explicitely import the croak function
don't return an error if a directory can't be created because it already exists
correctly handles registration of relative pkgmap entries in the /var/sadm/install/contents file
add support for the PKG_CAS_PASSRELATIVE package parameter