I am writing a package for Apache Pig but I am hitting my head on the ceiling on the build script. I need to specify both the Pig binary path and JAVA_HOME somewhere or the build won't work system to system. Not many people have the Pig binary in their system path and it's a real pain to do in OS X.