Skip error for not existant files in the config dir
Fix regexp detection for windows