Add prefer_dist option

Can now specify `--prefer-dist` option if needed.