Properly access to dist_dir from config