Use $0 and readlink/dirname to determine distro root

Signed-off-by: Mike Drob <mdrob@mdrob.com>