Build Script for hercules