fix main.sh config-dir