Fixed deletion of config file