Fixed behaviour if a file with given outputpath exists