Fixed bug where script would stop if file was already present before