Use pidfile to make sure script doesn't run more than once at a time.