pid file check to duplicate run