added unlock-file option for using a file semaphore to unlock