Added a mutex file lock to allow only one instance at a time