By default it uses the currently running kernel, which is not necessary the kernel the package was built for. Fix this by generating the path on package creation stage.