build:fix fix the fix for hdf5
Not sure when the variables are defined correctly... check if they exist, if not go to default