improve bhall script, autodetect project root and use maven better