Remove references to obsolete fix_permissions function.
Port changes from b917a94 (omniti-ms) to the template branch.
Merge remote-tracking branch 'omnios/template'

Conflicts:
	lib/functions.sh