Normalise/standardise lib/header hunting code
Prepare for 1.0.4 release