In updating the kernel (& modules) I would find it useful if the symbolic link "kernel.tclocal" (created by sorter.sh) would be based on relative path instead of on absolute one. In this case "depmod -b ..." would not throw error message and in case there is something in that folder it would be included successfully in dep files. My suggested code would read :
cd ${BASEPATH}/lib/modules/${KERNEL}
ln -s "../../../usr/local/lib/modules/${KERNEL}/kernel" "kernel.tclocal"