avoiding multiple instances of the ruby process using flock