Fix #211: read config file before cleaning output folder