Prevent multiple copies of scripts from running at once