Added Path::dist. Minor bugfix