updated kext_prefix function for more rubyism