script to limit the number of instances of a program