Prevent multiple instances of the same script