Exclude temporary files when checking if analysis processes have completed. Was previously running R too early.