fixed issue with file not existing when it needs to be deleted.