Fix checkshares script. Only one instance can running.