Refactored build_curves
Fixed typo
Merge branch 'hazard-curves-from-gmfs' of github.com:gem/oq-engine into fast-export