Use $0 and readlink/dirname to determine distro root

Signed-off-by: Mike Drob <mdrob@mdrob.com>
Merge branch '1.4.5-SNAPSHOT' into 1.5.1-SNAPSHOT