fixed getkeypath to support initial /