Fixed build script to not rely on go build tricks