That's what I had thought when I reviewed the code, I'll have to look further into my implementation because it might be a timing problem. I had tried unlink to remove the file but it still persisted in the directory. That being said, however, this doesn't explain why it saves a working directory copy for one file name and not the other. I completely understand why it saves it inside the script directory, just don't understand how it is inconsistently consistent on when it saves it based on the file name.