fix deprecated customdir option
fix config file