hamsterdb: updates for HEAD, add java detection using usr/libexec/java_home

head build: removed obsolete inreplace, bootstrap now needs explicit bin/sh
all builds: added java detection using usr/libexec/java_home