Prevent multiple simultaneous runs.

Use a lockfile to prevent multiple runs at the same time,
this closes #4.

TODO:  Possibly do the same to the generated script for extra-safety.