Sleep a little while to wait for the creation of file