Use config to set base dir