I replaced the hardcoded pathnames with variables, similarly to how spl.kext's compile script has done.