Fix testnet directory handling

Incorrect use of rstrip removed too many characters at the end of the
path for bitcoin folder when used with testnet. This prevented bitcoind
from starting up.