add sleep while file not exist for less then 1 second