Preventing a file from being overwritten if it already exists