fixing cdpath var