--- lib/smartdc/set-hostname.orig	2017-05-22 19:41:07 UTC
+++ lib/smartdc/set-hostname
@@ -4,7 +4,7 @@
 # Set the hostname of the VM if it's not already configured by the user.
 
 # load common functions and vars
-. /lib/smartdc/common.lib
+. %%PREFIX%%/lib/smartdc/common.lib
 
 grep hostname= /etc/rc.conf &>/dev/null
 if [[ $? -ne 0 ]]; then
