Please close ports/38185, and take these PR. I didn't took care about PREFIX and LOCALBASE inside the patches.
State Changed From-To: open->closed committed, thanks