fixed base dir for `require` on client side