added possibility to dynamically confirm if existing files should be replaced