Custom kernel module ending up in the wrong place

I am dealing with the same issue and have been documenting my attempts here