Fix issues when `walletdir` is root directory
Fix issues when `walletdir` is root directory

+ Remove one character less from wallet path if root directory

jlopp/statoshi,jlopp/statoshi,namecoin/namecore,ElementsProject/elements,dscotese/bitcoin,apoelstra/bitcoin,jambolo/bitcoin,MarcoFalke/bitcoin,mm-s/bitcoin,anditto/bitcoin,JeremyRubin/bitcoin,bitcoinknots/bitcoin,domob1812/namecore,GroestlCoin/bitcoin,domob1812/bitcoin,AkioNak/bitcoin,MarcoFalke/bitcoin,domob1812/bitcoin,sstone/bitcoin,qtumproject/qtum,JeremyRubin/bitcoin,namecoin/namecore,Xekyo/bitcoin,namecoin/namecore,AkioNak/bitcoin,fanquake/bitcoin,GroestlCoin/GroestlCoin,GroestlCoin/bitcoin,fujicoin/fujicoin,kallewoof/bitcoin,andreaskern/bitcoin,mruddy/bitcoin,domob1812/namecore,bitcoinknots/bitcoin,GroestlCoin/GroestlCoin,ElementsProject/elements,GroestlCoin/bitcoin,ajtowns/bitcoin,instagibbs/bitcoin,ElementsProject/elements,jambolo/bitcoin,bitcoinsSG/bitcoin,achow101/bitcoin,fujicoin/fujicoin,mruddy/bitcoin,fanquake/bitcoin,jambolo/bitcoin,dscotese/bitcoin,kallewoof/bitcoin,ElementsProject/elements,anditto/bitcoin,fujicoin/fujicoin,prusnak/bitcoin,pataquets/namecoin-core,MarcoFalke/bitcoin,instagibbs/bitcoin,lateminer/bitcoin,sstone/bitcoin,GroestlCoin/GroestlCoin,sipsorcery/bitcoin,particl/particl-core,fujicoin/fujicoin,prusnak/bitcoin,GroestlCoin/bitcoin,dscotese/bitcoin,jambolo/bitcoin,tecnovert/particl-core,Xekyo/bitcoin,andreaskern/bitcoin,jambolo/bitcoin,bitcoinsSG/bitcoin,sstone/bitcoin,lateminer/bitcoin,fanquake/bitcoin,namecoin/namecore,AkioNak/bitcoin,qtumproject/qtum,achow101/bitcoin,Xekyo/bitcoin,JeremyRubin/bitcoin,ElementsProject/elements,GroestlCoin/bitcoin,ajtowns/bitcoin,qtumproject/qtum,domob1812/bitcoin,fujicoin/fujicoin,mruddy/bitcoin,bitcoin/bitcoin,andreaskern/bitcoin,pataquets/namecoin-core,jamesob/bitcoin,GroestlCoin/GroestlCoin,qtumproject/qtum,mm-s/bitcoin,kallewoof/bitcoin,achow101/bitcoin,JeremyRubin/bitcoin,mm-s/bitcoin,namecoin/namecoin-core,lateminer/bitcoin,jlopp/statoshi,bitcoinknots/bitcoin,tecnovert/particl-core,pataquets/namecoin-core,JeremyRubin/bitcoin,namecoin/namecoin-core,GroestlCoin/GroestlCoin,particl/particl-core,apoelstra/bitcoin,qtumproject/qtum,apoelstra/bitcoin,pataquets/namecoin-core,lateminer/bitcoin,anditto/bitcoin,yenliangl/bitcoin,yenliangl/bitcoin,bitcoinknots/bitcoin,jlopp/statoshi,mruddy/bitcoin,fanquake/bitcoin,domob1812/bitcoin,yenliangl/bitcoin,instagibbs/bitcoin,domob1812/namecore,anditto/bitcoin,domob1812/namecore,bitcoinsSG/bitcoin,AkioNak/bitcoin,bitcoinknots/bitcoin,Xekyo/bitcoin,prusnak/bitcoin,MarcoFalke/bitcoin,domob1812/namecore,sstone/bitcoin,bitcoin/bitcoin,bitcoin/bitcoin,sipsorcery/bitcoin,mruddy/bitcoin,fanquake/bitcoin,ajtowns/bitcoin,MarcoFalke/bitcoin,prusnak/bitcoin,kallewoof/bitcoin,bitcoin/bitcoin,andreaskern/bitcoin,mm-s/bitcoin,dscotese/bitcoin,GroestlCoin/GroestlCoin,MarcoFalke/bitcoin,domob1812/namecore,namecoin/namecoin-core,jlopp/statoshi,GroestlCoin/bitcoin,domob1812/bitcoin,bitcoin/bitcoin,dscotese/bitcoin,Xekyo/bitcoin,yenliangl/bitcoin,namecoin/namecoin-core,jlopp/statoshi,apoelstra/bitcoin,AkioNak/bitcoin,ElementsProject/elements,bitcoinsSG/bitcoin,dscotese/bitcoin,bitcoinsSG/bitcoin,JeremyRubin/bitcoin,ajtowns/bitcoin,mm-s/bitcoin,sstone/bitcoin,jamesob/bitcoin,mruddy/bitcoin,tecnovert/particl-core,sstone/bitcoin,namecoin/namecoin-core,particl/particl-core,sipsorcery/bitcoin,jambolo/bitcoin,instagibbs/bitcoin,pataquets/namecoin-core,andreaskern/bitcoin,jamesob/bitcoin,andreaskern/bitcoin,ajtowns/bitcoin,qtumproject/qtum,qtumproject/qtum,sipsorcery/bitcoin,particl/particl-core,sipsorcery/bitcoin,jamesob/bitcoin,fanquake/bitcoin,namecoin/namecoin-core,achow101/bitcoin,particl/particl-core,namecoin/namecore,yenliangl/bitcoin,kallewoof/bitcoin,sipsorcery/bitcoin,mm-s/bitcoin,fujicoin/fujicoin,jamesob/bitcoin,apoelstra/bitcoin,achow101/bitcoin,bitcoin/bitcoin,instagibbs/bitcoin,Xekyo/bitcoin,particl/particl-core,tecnovert/particl-core,apoelstra/bitcoin,lateminer/bitcoin,jamesob/bitcoin,bitcoinsSG/bitcoin,tecnovert/particl-core,instagibbs/bitcoin,ajtowns/bitcoin,AkioNak/bitcoin,anditto/bitcoin,namecoin/namecore,achow101/bitcoin,lateminer/bitcoin,domob1812/bitcoin,prusnak/bitcoin,prusnak/bitcoin,tecnovert/particl-core,anditto/bitcoin,yenliangl/bitcoin,kallewoof/bitcoin,pataquets/namecoin-core