check for existence of files before attempting to clean them out