Automatically find ELPA package binary

Can anyone please try this out? I have been doing close to 10 force pushes now because of small bugs. Hard to get it right...