use a simple file lock to prevent running multiple instances at the same time