basedir fix for config