HM: More generic build.sh